package com.ruoyi.system.mapper;

import com.ruoyi.system.domain.SysWordLearningProgress;
import org.apache.ibatis.annotations.Param;

/**
 * 单词学习进度数据层
 */
public interface SysWordLearningProgressMapper
{
    /**
     * 新增单词学习进度
     */
    public int insertWordLearningProgress(SysWordLearningProgress entity);

    /**
     * 
     * @param studentId
     * @param courseId
     * @param unitId
     * @param orderby 格式：A.xxx asc/desc
     * @return
     */
    public SysWordLearningProgress list(@Param("studentId") Long studentId, @Param("courseId") Long courseId, @Param("unitId") Long unitId, @Param("orderby")String orderby);

    /**
     * 统计已学习的数量
     */
    public Integer sumStudyed(@Param("studentId") Long studentId, @Param("courseId") Long courseId, @Param("unitId") Long unitId, @Param("beginDay")String beginDay, @Param("endDay")String endDay);
}